#ifndef IPDB_H
#include <stdio.h>
#include <unistd.h>
#define IPDB_H
#include "stralloc.h"
#include "cdb.h"
int ipdb_key_from_uint (stralloc *, unsigned int ,unsigned char , char *, int, int );
int ipdb_key_from_str (stralloc *, const char *, unsigned char , char *,int, int );
int ipdb_key_from_bytes (stralloc *, unsigned char *,unsigned char , char *,int, int );

int ipdb_get (struct cdb *, unsigned char ip[4], char *u, int ulen, char *);

#endif
